package com.xbongbong.pro.statistic.help.strategy.field.method;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.statistic.help.FieldAnalysisHelp;
import com.xbongbong.pro.statistic.help.strategy.field.FieldAnalysisStrategy;
import com.xbongbong.pro.statistic.pojo.FieldAnalysisPojo;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author zhouwq
 * @date 2020/9/8 10:28
 */
@Component
public class UserFieldAnalysis implements FieldAnalysisStrategy {
    @Resource
    public FieldAnalysisHelp fieldAnalysisHelp;
    @Override
    public Map<String, String> doAnalysisField(FieldAnalysisPojo fieldAnalysisPojo) throws XbbException {
        return fieldAnalysisHelp.userAnalysis(fieldAnalysisPojo);
    }
}
